Skip to content

Conversation

@korniltsev-grafanista
Copy link
Contributor

@korniltsev-grafanista korniltsev-grafanista commented Sep 25, 2025

Previous attempt to fix this globally for all of alloy stalled #4369
I highly recommend to read the previous attempt PR description.
So this new PR is doing the same thing, but only fixes the pyroscope code.

The pyroscope.write test is now 31M instead of 81M.

This PR changes:

  • copy util.TestLogger
  • copy util.MustRegister
  • add GenericGlue to allow not depend on component package

The benefits are:

  • faster compilation time
  • faster module download time
  • more flexible code - allows greater code reuse opportunities

@korniltsev-grafanista korniltsev-grafanista requested a review from a team as a code owner September 25, 2025 14:47
@korniltsev-grafanista korniltsev-grafanista requested a review from a team as a code owner October 9, 2025 06:22
Copy link
Contributor

@marcsanmi marcsanmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From pyroscope perspective, LGTM.

@korniltsev-grafanista korniltsev-grafanista merged commit d9a0686 into main Oct 9, 2025
41 checks passed
@korniltsev-grafanista korniltsev-grafanista deleted the korniltsev/pyrouutils branch October 9, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants